package com.ds.controller;

import com.ds.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @program: SpringBoot
 * @description:
 * @author: Dawson.Zhang
 * @create: 2020-04-13
 **/
@RestController
public class UserController {

    @Autowired
    UserService userService;

    @RequestMapping("/hello")
    public String getUser() {

        return userService.getUser().toString();
    }
}
